#include <stdio.h>
#include <stdlib.h>

int add(int x, int y)
{
    return x + y;
}

int main()
{
    int num1 = 0;
    int num2 = 0;
    printf("请你输入两个数:\n");
    scanf("%d%d", &num1, &num2);
    //函数的写法
    // printf("%d\n",num1+num2);
    int sum = add(num1, num2);
    printf("sum=%d\n", sum);

    system("pause");
    return 0;
}